package nju.edu.desserthouse.model;

import java.io.Serializable;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: Bonus
 *
 */
@Entity
@Table(name = "bonus")
public class Bonus implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private int bonus_level;
	private double bonus_discount;
	private int bonus_weight;
	
	public Bonus(){
		super();
	}
	
	@Id
	public int getLevel(){
		return bonus_level;
	}
	
	public void setLevel(int bonus_level){
		this.bonus_level = bonus_level;
	}
	
	public double getDiscount(){
		return bonus_discount;
	}
	
	public void setDiscount(double bonus_discount){
		this.bonus_discount = bonus_discount;
	}
	
	public int getWeight(){
		return bonus_weight;
	}
	
	public void setWeight(int bonus_weight){
		this.bonus_weight = bonus_weight;
	}
}
